import request from '@/utils/request'

// 新增考试策略
export function addTactics(paperId, titleId) {
    return request({
        url: '/exam/randomPaper/addTactics/' + paperId + '/' + titleId,
        method: 'post'
    })
}

// 删除考试策略
export function delTactics(tacticsId) {
    return request({
        url: '/exam/randomPaper/removeTactics/' + tacticsId,
        method: 'post'
    })
}

//根据大题Id获取策略信息
export function getTacticsByTitleId(titleId) {
    return request({
        url: '/exam/randomPaper/getTacticsByTitleId/' + titleId,
        method: 'get',
    })
}

//随机策略修改不限难度题目数量
export function updateTacticsUnlimitedNum(tacticsId, num) {
    return request({
        url: '/exam/randomPaper/updateTacticsUnlimitedNum/' + tacticsId + '/' + num,
        method: 'post',
    })
}

//随机策略修改简单题目数量
export function updateTacticsEasyNum(tacticsId, num) {
    return request({
        url: '/exam/randomPaper/updateTacticsEasyNum/' + tacticsId + '/' + num,
        method: 'post',
    })
}

//随机策略修改中等题目数量
export function updateTacticsNormalNum(tacticsId, num) {
    return request({
        url: '/exam/randomPaper/updateTacticsNormalNum/' + tacticsId + '/' + num,
        method: 'post',
    })
}

//随机策略修改困难题目数量
export function updateTacticsHardNum(tacticsId, num) {
    return request({
        url: '/exam/randomPaper/updateTacticsHardNum/' + tacticsId + '/' + num,
        method: 'post',
    })
}

//随机策略修改题目分数
export function updateTacticsScore(tacticsId, score) {
    return request({
        url: '/exam/randomPaper/updateTacticsScore/' + tacticsId + '/' + score,
        method: 'post',
    })
}

//更新随机策略信息
export function updateTacticsInfo(tacticsId, categoryId, topicType) {
    return request({
        url: '/exam/randomPaper/updateTacticsInfo/' + tacticsId + '/' + categoryId + '/' + topicType,
        method: 'post',
    })
}